export default {
  xdataControlName: 'list',
  loadDefault: true,
  deviewCodeName: 'history_list_view',
  deviewId: '7253adee34ca867c56dcb38cc85e3fd4',
  accUserMode: 2,
  capLanguageRes: {
    lanResTag: 'DE.LNAME.ACTIVITY',
  },
  caption: '活动历史列表',
  codeName: 'activity_history_list_view',
  appDataEntityId: 'web.activity',
  appViewEngines: [
    {
      engineCat: 'VIEW',
      engineType: 'ListView',
      id: 'engine',
    },
  ],
  appViewLogics: [
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        actionAfterWizard: 'DEFAULT',
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_NEWDATA',
        id: '新建数据',
      },
      builtinLogic: true,
      id: 'newdata',
    },
    {
      logicTrigger: 'CUSTOM',
      logicType: 'APPUILOGIC',
      builtinAppUILogic: {
        editMode: true,
        builtinLogic: true,
        logicType: 'PREDEFINED',
        viewLogicType: 'APP_OPENDATA',
        id: '打开数据',
      },
      builtinLogic: true,
      id: 'opendata',
    },
  ],
  appViewNavParams: [
    {
      key: 'n_objectid_eq',
      value: 'principal_id',
      id: 'n_objectid_eq',
    },
    {
      rawValue: true,
      key: 'n_auditinfo_isnotnull',
      value: '1',
      id: 'n_auditinfo_isnotnull',
    },
  ],
  appViewRefs: [
    {
      name: 'NEWDATA',
      id: 'newdata',
    },
    {
      name: 'EDITDATA',
      id: 'editdata',
    },
  ],
  controls: [
    {
      groupMode: 'NONE',
      groupStyle: 'DEFAULT',
      itemLayoutPanel: {
        layoutMode: 'TABLE_24COL',
        layout: {
          columnCount: 24,
          layout: 'TABLE_24COL',
        },
        rootPanelItems: [
          {
            actionGroupExtractMode: 'ITEM',
            panelItems: [
              {
                actionGroupExtractMode: 'ITEM',
                panelItems: [
                  {
                    editor: {
                      halign: 'LEFT',
                      renderMode: 'TEXT_DYNAMIC',
                      valign: 'MIDDLE',
                      wrapMode: 'NOWRAP',
                      appCodeListId: 'web.sysoperator',
                      editorStyle: 'PERSONNEL_INFO',
                      editorType: 'SPAN',
                      sysPFPluginId: 'personnel_info',
                      predefinedType: 'FIELD_TEXT_DYNAMIC',
                      valueType: 'SIMPLE',
                      editable: true,
                      id: 'user_name',
                    },
                    viewFieldName: 'OPPERSONID',
                    allowEmpty: true,
                    convertToCodeItemText: true,
                    caption: '文本(动态)',
                    itemStyle: 'DEFAULT',
                    itemType: 'FIELD',
                    layoutPos: {
                      shrink: 1,
                      layout: 'FLEX',
                    },
                    id: 'user_name',
                  },
                  {
                    editor: {
                      halign: 'LEFT',
                      renderMode: 'TEXT_DYNAMIC',
                      valign: 'MIDDLE',
                      wrapMode: 'NOWRAP',
                      editorType: 'SPAN',
                      predefinedType: 'FIELD_TEXT_DYNAMIC',
                      valueType: 'SIMPLE',
                      editable: true,
                      id: 'time',
                    },
                    viewFieldName: 'UPDATE_TIME',
                    allowEmpty: true,
                    caption: '文本(动态)',
                    cssStyle:
                      'line-height: var(--ibiz-height-control-default);',
                    itemStyle: 'DEFAULT',
                    itemType: 'FIELD',
                    layoutPos: {
                      shrink: 1,
                      layout: 'FLEX',
                      spacingLeft: 'OUTERSMALL',
                    },
                    sysCss: {
                      cssName: 'transition-time',
                    },
                    id: 'time',
                  },
                  {
                    editor: {
                      editorType: 'HIDDEN',
                      predefinedType: 'FIELD_TEXT_DYNAMIC',
                      valueType: 'SIMPLE',
                      editable: true,
                      id: 'audittype',
                    },
                    viewFieldName: 'AUDITTYPE',
                    allowEmpty: true,
                    hidden: true,
                    caption: '文本(动态)',
                    itemType: 'FIELD',
                    layoutPos: {
                      shrink: 1,
                      layout: 'FLEX',
                    },
                    id: 'audittype',
                  },
                  {
                    editor: {
                      editorType: 'HIDDEN',
                      predefinedType: 'FIELD_TEXTBOX',
                      valueType: 'SIMPLE',
                      editable: true,
                      id: 'objecttype',
                    },
                    viewFieldName: 'OBJECTTYPE',
                    allowEmpty: true,
                    hidden: true,
                    caption: '文本框',
                    itemType: 'FIELD',
                    layoutPos: {
                      shrink: 1,
                      layout: 'FLEX',
                    },
                    id: 'objecttype',
                  },
                ],
                layout: {
                  align: 'flex-start',
                  dir: 'row',
                  layout: 'FLEX',
                },
                dataRegionType: 'INHERIT',
                caption: '容器',
                itemStyle: 'DEFAULT',
                itemType: 'CONTAINER',
                layoutPos: {
                  shrink: 1,
                  layout: 'FLEX',
                },
                id: 'container',
              },
              {
                actionGroupExtractMode: 'ITEM',
                panelItems: [
                  {
                    editor: {
                      contentType: 'HTML',
                      template:
                        "{{#each this as | item |}}<div class='object_type'><div class='activity-item--caption'>修改了{{#if item.logicname}}{{item.logicname}}{{else}}{{item.dataauditdetailname}}{{/if}} {{#or (eq item.dataauditdetailname 'STEPS') (eq item.dataauditdetailname 'PRECONDITION') (eq item.dataauditdetailname 'DESCRIPTION')}}<span class='activity-item--contrast' click='onContrast(`{{item.dataauditdetailname}}`)'>对比</span>{{/or}}</div>{{#and (neq item.dataauditdetailname 'STEPS') (neq item.dataauditdetailname 'PRECONDITION') (neq item.dataauditdetailname 'DESCRIPTION')}}<div class='activity-item--description'><span class='activity-item--oldvalue'>{{#if item.oldtext}}{{item.oldtext}}{{else}}{{#if item.oldvalue}}{{item.oldvalue}}{{else}}无{{/if}}{{/if}}</span><ion-icon name='arrow-forward-outline'></ion-icon><span class='activity-item--newvalue'>{{#if item.newtext}}{{item.newtext}}{{else}}{{#if item.newvalue}}{{item.newvalue}}{{else}}无{{/if}}{{/if}}</span></div>{{/and}}</div>{{/each}}",
                      editorParams: {
                        contenttype: 'HTML',
                        template:
                          "{{#each this as | item |}}<div class='object_type'><div class='activity-item--caption'>修改了{{#if item.logicname}}{{item.logicname}}{{else}}{{item.dataauditdetailname}}{{/if}} {{#or (eq item.dataauditdetailname 'STEPS') (eq item.dataauditdetailname 'PRECONDITION') (eq item.dataauditdetailname 'DESCRIPTION')}}<span class='activity-item--contrast' click='onContrast(`{{item.dataauditdetailname}}`)'>对比</span>{{/or}}</div>{{#and (neq item.dataauditdetailname 'STEPS') (neq item.dataauditdetailname 'PRECONDITION') (neq item.dataauditdetailname 'DESCRIPTION')}}<div class='activity-item--description'><span class='activity-item--oldvalue'>{{#if item.oldtext}}{{item.oldtext}}{{else}}{{#if item.oldvalue}}{{item.oldvalue}}{{else}}无{{/if}}{{/if}}</span><ion-icon name='arrow-forward-outline'></ion-icon><span class='activity-item--newvalue'>{{#if item.newtext}}{{item.newtext}}{{else}}{{#if item.newvalue}}{{item.newvalue}}{{else}}无{{/if}}{{/if}}</span></div>{{/and}}</div>{{/each}}",
                      },
                      editorStyle: 'RAW_ACTIVITY',
                      editorType: 'RAW',
                      sysPFPluginId: 'raw_activity',
                      valueType: 'SIMPLE',
                      editable: true,
                      id: 'auditinfo',
                    },
                    viewFieldName: 'AUDITINFO',
                    allowEmpty: true,
                    caption: '文本框',
                    cssStyle: 'font-size:14px !important;',
                    itemStyle: 'DEFAULT',
                    itemType: 'FIELD',
                    layoutPos: {
                      shrink: 1,
                      layout: 'FLEX',
                    },
                    panelItemGroupLogics: [
                      {
                        logicCat: 'PANELVISIBLE',
                        relatedItemNames: ['audittype'],
                        groupOP: 'AND',
                        panelItemLogics: [
                          {
                            condOp: 'NOTEQ',
                            dstModelField: 'AUDITTYPE',
                            value: 'Create',
                            logicType: 'SINGLE',
                            id: '逻辑项',
                          },
                        ],
                        logicType: 'GROUP',
                      },
                    ],
                    id: 'auditinfo',
                  },
                  {
                    actionGroupExtractMode: 'ITEM',
                    panelItems: [
                      {
                        rawItem: {
                          caption: '创建工作项',
                          halign: 'LEFT',
                          renderMode: 'TEXT',
                          valign: 'MIDDLE',
                          wrapMode: 'NOWRAP',
                          contentType: 'RAW',
                          predefinedType: 'STATIC_TEXT',
                          id: 'work_item',
                        },
                        caption: '创建工作项',
                        itemStyle: 'DEFAULT',
                        itemType: 'RAWITEM',
                        layoutPos: {
                          shrink: 1,
                          layout: 'FLEX',
                        },
                        panelItemGroupLogics: [
                          {
                            logicCat: 'PANELVISIBLE',
                            relatedItemNames: ['objecttype'],
                            groupOP: 'AND',
                            panelItemLogics: [
                              {
                                condOp: 'EQ',
                                dstModelField: 'OBJECTTYPE',
                                value: 'WORK_ITEM',
                                logicType: 'SINGLE',
                                id: '逻辑项',
                              },
                            ],
                            logicType: 'GROUP',
                          },
                        ],
                        showCaption: true,
                        id: 'work_item',
                      },
                      {
                        rawItem: {
                          caption: '创建用例',
                          halign: 'LEFT',
                          renderMode: 'TEXT',
                          valign: 'MIDDLE',
                          wrapMode: 'NOWRAP',
                          contentType: 'RAW',
                          predefinedType: 'STATIC_TEXT',
                          id: 'run',
                        },
                        caption: '创建用例',
                        itemStyle: 'DEFAULT',
                        itemType: 'RAWITEM',
                        layoutPos: {
                          shrink: 1,
                          layout: 'FLEX',
                        },
                        panelItemGroupLogics: [
                          {
                            logicCat: 'PANELVISIBLE',
                            relatedItemNames: ['objecttype'],
                            groupOP: 'AND',
                            panelItemLogics: [
                              {
                                groupOP: 'OR',
                                panelItemLogics: [
                                  {
                                    condOp: 'EQ',
                                    dstModelField: 'OBJECTTYPE',
                                    value: 'RUN',
                                    logicType: 'SINGLE',
                                    id: '逻辑项',
                                  },
                                  {
                                    condOp: 'EQ',
                                    dstModelField: 'OBJECTTYPE',
                                    value: 'TEST_CASE',
                                    logicType: 'SINGLE',
                                    id: '逻辑项',
                                  },
                                ],
                                logicType: 'GROUP',
                                id: '逻辑分组',
                              },
                            ],
                            logicType: 'GROUP',
                          },
                        ],
                        showCaption: true,
                        id: 'run',
                      },
                      {
                        rawItem: {
                          caption: '创建工单',
                          halign: 'LEFT',
                          renderMode: 'TEXT',
                          valign: 'MIDDLE',
                          wrapMode: 'NOWRAP',
                          contentType: 'RAW',
                          predefinedType: 'STATIC_TEXT',
                          id: 'ticket',
                        },
                        caption: '创建工单',
                        itemStyle: 'DEFAULT',
                        itemType: 'RAWITEM',
                        layoutPos: {
                          shrink: 1,
                          layout: 'FLEX',
                        },
                        panelItemGroupLogics: [
                          {
                            logicCat: 'PANELVISIBLE',
                            relatedItemNames: ['objecttype'],
                            groupOP: 'AND',
                            panelItemLogics: [
                              {
                                condOp: 'EQ',
                                dstModelField: 'OBJECTTYPE',
                                value: 'TICKET',
                                logicType: 'SINGLE',
                                id: '逻辑项',
                              },
                            ],
                            logicType: 'GROUP',
                          },
                        ],
                        showCaption: true,
                        id: 'ticket',
                      },
                      {
                        rawItem: {
                          caption: '创建需求',
                          halign: 'LEFT',
                          renderMode: 'TEXT',
                          valign: 'MIDDLE',
                          wrapMode: 'NOWRAP',
                          contentType: 'RAW',
                          predefinedType: 'STATIC_TEXT',
                          id: 'idea',
                        },
                        caption: '创建需求',
                        itemStyle: 'DEFAULT',
                        itemType: 'RAWITEM',
                        layoutPos: {
                          shrink: 1,
                          layout: 'FLEX',
                        },
                        panelItemGroupLogics: [
                          {
                            logicCat: 'PANELVISIBLE',
                            relatedItemNames: ['objecttype'],
                            groupOP: 'AND',
                            panelItemLogics: [
                              {
                                condOp: 'EQ',
                                dstModelField: 'OBJECTTYPE',
                                value: 'IDEA',
                                logicType: 'SINGLE',
                                id: '逻辑项',
                              },
                            ],
                            logicType: 'GROUP',
                          },
                        ],
                        showCaption: true,
                        id: 'idea',
                      },
                    ],
                    layout: {
                      layout: 'FLEX',
                    },
                    dataRegionType: 'INHERIT',
                    caption: '容器',
                    cssStyle: 'padding-left: 4px;',
                    itemStyle: 'DEFAULT',
                    itemType: 'CONTAINER',
                    layoutPos: {
                      shrink: 1,
                      layout: 'FLEX',
                    },
                    panelItemGroupLogics: [
                      {
                        logicCat: 'PANELVISIBLE',
                        relatedItemNames: ['audittype'],
                        groupOP: 'AND',
                        panelItemLogics: [
                          {
                            condOp: 'EQ',
                            dstModelField: 'AUDITTYPE',
                            value: 'Create',
                            logicType: 'SINGLE',
                            id: '逻辑项',
                          },
                        ],
                        logicType: 'GROUP',
                      },
                    ],
                    id: 'container3',
                  },
                ],
                layout: {
                  layout: 'FLEX',
                },
                dataRegionType: 'INHERIT',
                caption: '容器',
                cssStyle: 'padding-left: 36px;',
                itemStyle: 'DEFAULT',
                itemType: 'CONTAINER',
                layoutPos: {
                  shrink: 1,
                  layout: 'FLEX',
                  spacingBottom: 'OUTERSMALL',
                },
                id: 'container1',
              },
            ],
            layout: {
              dir: 'column',
              layout: 'FLEX',
            },
            dataRegionType: 'INHERIT',
            itemStyle: 'DEFAULT',
            itemType: 'CONTAINER',
            layoutPos: {
              colMD: 24,
              layout: 'TABLE_24COL',
            },
            id: 'page_container',
          },
        ],
        codeName: 'usr0218550985',
        controlType: 'PANEL',
        logicName: 'HISTORY_LIST_列表项面板',
        appDataEntityId: 'web.activity',
        controlParam: {},
        modelId: 'bfa33b7f1b88000fc19b6f369ed9f855',
        modelType: 'PSSYSVIEWPANEL',
        name: 'list_itempanel',
        id: 'web.activity.usr0218550985',
      },
      minorSortDir: 'DESC',
      minorSortAppDEFieldId: 'update_time',
      delistDataItems: [
        {
          appDEFieldId: 'audit_info',
          dataType: 21,
          id: 'auditinfo',
        },
        {
          appDEFieldId: 'object_type',
          dataType: 25,
          id: 'objecttype',
        },
        {
          appDEFieldId: 'audit_type',
          dataType: 25,
          id: 'audittype',
        },
        {
          appDEFieldId: 'op_person_id',
          dataType: 25,
          id: 'oppersonid',
        },
        {
          appDEFieldId: 'op_person_name',
          dataType: 25,
          id: 'oppersonname',
        },
        {
          appDEFieldId: 'update_time',
          dataType: 5,
          format: 'YYYY-MM-DD HH:mm:ss',
          id: 'update_time',
        },
        {
          appDEFieldId: 'id',
          dataType: 25,
          id: 'srfkey',
        },
        {
          appDEFieldId: 'name',
          dataType: 25,
          id: 'srfmajortext',
        },
      ],
      pagingSize: 1000,
      showHeader: true,
      navViewPos: 'NONE',
      createControlAction: {
        appDEMethodId: 'create',
        appDataEntityId: 'web.activity',
        id: 'create',
      },
      fetchControlAction: {
        appDEMethodId: 'fetch_all',
        appDataEntityId: 'web.activity',
        id: 'fetch',
      },
      getControlAction: {
        appDEMethodId: 'get',
        appDataEntityId: 'web.activity',
        id: 'load',
      },
      removeControlAction: {
        appDEMethodId: 'remove',
        appDataEntityId: 'web.activity',
        id: 'remove',
      },
      updateControlAction: {
        appDEMethodId: 'update',
        appDataEntityId: 'web.activity',
        id: 'update',
      },
      autoLoad: true,
      showBusyIndicator: true,
      codeName: 'history_list',
      controlType: 'LIST',
      logicName: 'HISTORY_LIST',
      appDataEntityId: 'web.activity',
      controlParam: {
        id: 'list',
      },
      sysCss: {
        cssName: 'comment-list-height-auto',
      },
      modelId: '33927f427b5d2208d47c096d8bfed110',
      modelType: 'PSDELIST',
      name: 'list',
      id: 'web.activity.history_list',
    },
    {
      groupMode: 'SINGLE',
      controlType: 'SEARCHBAR',
      appDataEntityId: 'web.activity',
      controlParam: {
        id: 'searchbar',
      },
      id: 'searchbar',
    },
    {
      capLanguageRes: {
        lanResTag: 'DE.LNAME.ACTIVITY',
      },
      caption: '活动历史列表',
      codeName: 'history_list_view_captionbar',
      controlType: 'CAPTIONBAR',
      appDataEntityId: 'web.activity',
      controlParam: {},
      name: 'captionbar',
      id: 'history_list_view_captionbar',
    },
  ],
  viewLayoutPanel: {
    layoutBodyOnly: true,
    useDefaultLayout: true,
    layoutPanel: true,
    codeName: 'layoutpanel',
    controlStyle: 'APPDELISTVIEW',
    controlType: 'VIEWLAYOUTPANEL',
    appDataEntityId: 'web.activity',
    controlParam: {},
    id: 'layoutpanel',
  },
  priority: 10,
  title: '活动历史列表',
  viewStyle: 'DEFAULT',
  viewType: 'DELISTVIEW',
  enableDP: true,
  showCaptionBar: false,
  modelId: 'ba44a73b6c4061f1610c32a8501552c1',
  modelType: 'PSAPPDEVIEW',
  name: 'activityhistory_list_view',
  id: 'web.activity_history_list_view',
};
